﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Media;

namespace WQDSkin.Forms.Controls
{
    public class WQDSystemPath
    {

        public static Geometry Add
        {
            get
            {
                return GetDictionary("Icon_Add");
            }
        }

        public static Geometry Edit
        {
            get
            {
                return GetDictionary("Icon_Edit");
            }
        }

        public static Geometry Delete
        {
            get
            {
                return GetDictionary("Icon_Delete");
            }
        }

        public static Geometry Save
        {
            get
            {
                return GetDictionary("Icon_Save");
            }
        }

        public static Geometry Cancel
        {
            get
            {
                return GetDictionary("Icon_Cancel");
            }
        }

        public static Geometry Refaush
        {
            get
            {
                return GetDictionary("Icon_Refaush");
            }
        }

        public static Geometry Find
        {
            get
            {
                return GetDictionary("Icon_Find");
            }
        }

        public static Geometry Back
        {
            get
            {
                return GetDictionary("Icon_Back");
            }
        }

        private static Geometry GetDictionary(string key)
        {
            ResourceDictionary resource = Application.Current.Resources;

            Geometry geometry = null;
            if (resource.Contains(key))
            {
                geometry = (Geometry)resource[key];
            }

            return geometry;
        }
    }
}
